package interceptor01.demo.po;

import lombok.Data;

@Data
public class UserThreadLocal {

    private UserThreadLocal(){}

    private static final ThreadLocal<UserInfoPo> LOCAL = new ThreadLocal<>();

    public static void put(UserInfoPo userInfoPo){
        LOCAL.set(userInfoPo);
    }

    public static UserInfoPo get(){
       return LOCAL.get();
    }

    public static void remove(){
        LOCAL.remove();
    }

}
